package java8_5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Rank {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入韩燕同学的名次：");//根据名次拿奖励
        int rank = in.nextInt();
        switch (rank) {
            case 1: {
                System.out.println("参加夏令营");
            }
            break;
            case 2: {
                System.out.println("买hp笔记本电脑");
            }
            break;
            case 3: {
                System.out.println("买一块硬盘！");
            }
            break;
            default: {
                System.out.println("没有奖励");
            }
            break;
        }
    }
}
